var Myfunction=function(){
return{
    $get:function(){

        return{
            item:[
                {id:'img/24.jpg',name:'华莱士',money:'25/人',man:1000},
        {id:'img/25.jpg',name:'正新鸡排',money:'27/人',man:1100},
        {id:'img/26.jpg',name:'谷稻小米粥',money:'30/人',man:1045},
        {id:'img/27.jpg',name:'剁椒鱼头',money:'28/人',man:2450},
        {id:'img/28.jpg',name:'花甲米线',money:'10/人',man:1582},
        {id:'img/29.jpg',name:'海鲜自助',money:'80/人',man:1165},
        {id:'img/30.jpg',name:'好粥道',money:'35/人',man:1145}
            ]
        }

    }
}

}



var apptow=angular.module("apptow",[]);
apptow.value('myy',"1938254766")
apptow.constant('dz',' 定餐电话')
apptow.provider('myself',Myfunction)
apptow.controller("main",function($scope,myself,myy,dz){
    $scope.tel=0;
    $scope.phon=myy;
    $scope.dzz=dz;
    $scope.msg='您确定修改文本框里面的数据吗？';
$scope.item=myself.item;
    $scope.$watch('tel',function(){
       alert('确定加载页面数据吗？')
    })
window.scope=$scope
})

function add(){
confirm(window.scope.msg)       
window.scope.$apply()
        
     }
